import CommonApi from './common'

// 决策模型 /性能预测模型库
class PerformancePredictionApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/model/decisionmodel'
    }

    // 获取模型公式列表
    getFormualList() {
        const path = '/model/formual/list'
        return this.post(path)
    }
    // 获取模型应用历史数据
    getHistoryList(data) {
        const path = this.resolvePath('/parameterHistoryList')
        return this.post(path, data)
    }
    // 参数应用
    handledUsed(data) {
        const path = this.resolvePath('/apply')
        return this.post(path, data)
    }
    // 再次应用
    handledAgainUsed(data) {
        const path = this.resolvePath('/againApply')
        return this.post(path, data)
    }
    // 获取模型公式参数
    getFormualParame(data) {
        const path = this.resolvePath('/parameterConfigure')
        return this.post(path, data)
    }
}

export default PerformancePredictionApi
